#ifndef DRAWCURVE_H
#define DRAWCURVE_H

#include <QWidget>
#include <QPainter>
#include <QEvent>
#include "ui_mainwindow.h"
#include "weatherdata.h"

QT_BEGIN_NAMESPACE
namespace Ui {
    class MainWindow;
}
QT_END_NAMESPACE

class MainWindow;

class DrawCurve : public QWidget
{
    Q_OBJECT
public:
    explicit DrawCurve(QWidget* parent = nullptr);
    Ui::MainWindow* ui;
    bool eventFilter(QObject* watched, QEvent* event) override;
    void paintLowCurve();
    void paintHighCurve();
public slots:
    void updateData(const Today& today, const Day* days);
    // DrawCurve(const Today& today, const Day* days);
private:
    Today mToday;
    Day mDay[6];
    QList<QLabel*> myQualitylist;

signals:
};

#endif // DRAWCURVE_H
